package com.hospital.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ZyxxbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ZyxxbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBlhIsNull() {
            addCriterion("BLH is null");
            return (Criteria) this;
        }

        public Criteria andBlhIsNotNull() {
            addCriterion("BLH is not null");
            return (Criteria) this;
        }

        public Criteria andBlhEqualTo(Integer value) {
            addCriterion("BLH =", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhNotEqualTo(Integer value) {
            addCriterion("BLH <>", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhGreaterThan(Integer value) {
            addCriterion("BLH >", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhGreaterThanOrEqualTo(Integer value) {
            addCriterion("BLH >=", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhLessThan(Integer value) {
            addCriterion("BLH <", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhLessThanOrEqualTo(Integer value) {
            addCriterion("BLH <=", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhIn(List<Integer> values) {
            addCriterion("BLH in", values, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhNotIn(List<Integer> values) {
            addCriterion("BLH not in", values, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhBetween(Integer value1, Integer value2) {
            addCriterion("BLH between", value1, value2, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhNotBetween(Integer value1, Integer value2) {
            addCriterion("BLH not between", value1, value2, "blh");
            return (Criteria) this;
        }

        public Criteria andHlrIsNull() {
            addCriterion("HLR is null");
            return (Criteria) this;
        }

        public Criteria andHlrIsNotNull() {
            addCriterion("HLR is not null");
            return (Criteria) this;
        }

        public Criteria andHlrEqualTo(String value) {
            addCriterion("HLR =", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrNotEqualTo(String value) {
            addCriterion("HLR <>", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrGreaterThan(String value) {
            addCriterion("HLR >", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrGreaterThanOrEqualTo(String value) {
            addCriterion("HLR >=", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrLessThan(String value) {
            addCriterion("HLR <", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrLessThanOrEqualTo(String value) {
            addCriterion("HLR <=", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrLike(String value) {
            addCriterion("HLR like", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrNotLike(String value) {
            addCriterion("HLR not like", value, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrIn(List<String> values) {
            addCriterion("HLR in", values, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrNotIn(List<String> values) {
            addCriterion("HLR not in", values, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrBetween(String value1, String value2) {
            addCriterion("HLR between", value1, value2, "hlr");
            return (Criteria) this;
        }

        public Criteria andHlrNotBetween(String value1, String value2) {
            addCriterion("HLR not between", value1, value2, "hlr");
            return (Criteria) this;
        }

        public Criteria andCwhIsNull() {
            addCriterion("CWH is null");
            return (Criteria) this;
        }

        public Criteria andCwhIsNotNull() {
            addCriterion("CWH is not null");
            return (Criteria) this;
        }

        public Criteria andCwhEqualTo(String value) {
            addCriterion("CWH =", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhNotEqualTo(String value) {
            addCriterion("CWH <>", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhGreaterThan(String value) {
            addCriterion("CWH >", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhGreaterThanOrEqualTo(String value) {
            addCriterion("CWH >=", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhLessThan(String value) {
            addCriterion("CWH <", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhLessThanOrEqualTo(String value) {
            addCriterion("CWH <=", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhLike(String value) {
            addCriterion("CWH like", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhNotLike(String value) {
            addCriterion("CWH not like", value, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhIn(List<String> values) {
            addCriterion("CWH in", values, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhNotIn(List<String> values) {
            addCriterion("CWH not in", values, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhBetween(String value1, String value2) {
            addCriterion("CWH between", value1, value2, "cwh");
            return (Criteria) this;
        }

        public Criteria andCwhNotBetween(String value1, String value2) {
            addCriterion("CWH not between", value1, value2, "cwh");
            return (Criteria) this;
        }

        public Criteria andJfyjIsNull() {
            addCriterion("JFYJ is null");
            return (Criteria) this;
        }

        public Criteria andJfyjIsNotNull() {
            addCriterion("JFYJ is not null");
            return (Criteria) this;
        }

        public Criteria andJfyjEqualTo(Double value) {
            addCriterion("JFYJ =", value, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjNotEqualTo(Double value) {
            addCriterion("JFYJ <>", value, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjGreaterThan(Double value) {
            addCriterion("JFYJ >", value, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjGreaterThanOrEqualTo(Double value) {
            addCriterion("JFYJ >=", value, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjLessThan(Double value) {
            addCriterion("JFYJ <", value, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjLessThanOrEqualTo(Double value) {
            addCriterion("JFYJ <=", value, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjIn(List<Double> values) {
            addCriterion("JFYJ in", values, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjNotIn(List<Double> values) {
            addCriterion("JFYJ not in", values, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjBetween(Double value1, Double value2) {
            addCriterion("JFYJ between", value1, value2, "jfyj");
            return (Criteria) this;
        }

        public Criteria andJfyjNotBetween(Double value1, Double value2) {
            addCriterion("JFYJ not between", value1, value2, "jfyj");
            return (Criteria) this;
        }

        public Criteria andBqIsNull() {
            addCriterion("BQ is null");
            return (Criteria) this;
        }

        public Criteria andBqIsNotNull() {
            addCriterion("BQ is not null");
            return (Criteria) this;
        }

        public Criteria andBqEqualTo(String value) {
            addCriterion("BQ =", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotEqualTo(String value) {
            addCriterion("BQ <>", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqGreaterThan(String value) {
            addCriterion("BQ >", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqGreaterThanOrEqualTo(String value) {
            addCriterion("BQ >=", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLessThan(String value) {
            addCriterion("BQ <", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLessThanOrEqualTo(String value) {
            addCriterion("BQ <=", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLike(String value) {
            addCriterion("BQ like", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotLike(String value) {
            addCriterion("BQ not like", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqIn(List<String> values) {
            addCriterion("BQ in", values, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotIn(List<String> values) {
            addCriterion("BQ not in", values, "bq");
            return (Criteria) this;
        }

        public Criteria andBqBetween(String value1, String value2) {
            addCriterion("BQ between", value1, value2, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotBetween(String value1, String value2) {
            addCriterion("BQ not between", value1, value2, "bq");
            return (Criteria) this;
        }

        public Criteria andZysjIsNull() {
            addCriterion("ZYSJ is null");
            return (Criteria) this;
        }

        public Criteria andZysjIsNotNull() {
            addCriterion("ZYSJ is not null");
            return (Criteria) this;
        }

        public Criteria andZysjEqualTo(Date value) {
            addCriterion("ZYSJ =", value, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjNotEqualTo(Date value) {
            addCriterion("ZYSJ <>", value, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjGreaterThan(Date value) {
            addCriterion("ZYSJ >", value, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjGreaterThanOrEqualTo(Date value) {
            addCriterion("ZYSJ >=", value, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjLessThan(Date value) {
            addCriterion("ZYSJ <", value, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjLessThanOrEqualTo(Date value) {
            addCriterion("ZYSJ <=", value, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjIn(List<Date> values) {
            addCriterion("ZYSJ in", values, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjNotIn(List<Date> values) {
            addCriterion("ZYSJ not in", values, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjBetween(Date value1, Date value2) {
            addCriterion("ZYSJ between", value1, value2, "zysj");
            return (Criteria) this;
        }

        public Criteria andZysjNotBetween(Date value1, Date value2) {
            addCriterion("ZYSJ not between", value1, value2, "zysj");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}